package com.ruoyi.web.controller.pc.anon;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.ruoyi.blogs.domain.BsBanner;
import com.ruoyi.blogs.service.IBsBannerService;
import com.ruoyi.common.core.controller.BaseController;
import com.ruoyi.common.core.domain.R;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;

/**
 * 登录验证
 *
 * @author ruoyi
 */
@Api(tags = "轮播图")
@RestController
@RequestMapping("/anon/banner")
public class AnonBannerController extends BaseController {
    @Autowired
    private IBsBannerService bsBannerService;

    /**
     * 查询Banner管理列表
     */
    @ApiOperation("获取轮播图")
    @GetMapping("/list")
    public R<List<BsBanner>> getBanner() {
        BsBanner bsBanner = new BsBanner();
        List<BsBanner> list = bsBannerService.selectBsBannerList(bsBanner);
        return R.ok(list);
    }
}
